package cpi.service;

import cpi.entity.PredictModel;
import org.jpmml.evaluator.Evaluator;

import java.io.FileNotFoundException;
import java.util.List;
import java.util.Map;

public interface PredictService {
    Evaluator loadPmml(String modelName) throws FileNotFoundException;
    Double predict(Evaluator evaluator, Map<String, Integer> featuremap);
    Map<String, Integer> converter(String type, String province, String representTime);
    String predictOneCpi(String modelName, String type, String province, String representTime) throws FileNotFoundException;
    Map<String, PredictModel> predictListCpi(String modelName, PredictModel predictModel, Integer period) throws FileNotFoundException;
}
